<?php
/* @var $this TeacherController */
/* @var $model Teacher */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'teacher-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'teacher_name'); ?>
		<?php echo $form->textField($model,'teacher_name',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'teacher_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'user_id'); ?>
		<?php echo $form->textField($model,'user_id',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'user_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sex'); ?>
		<?php echo $form->textField($model,'sex',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'sex'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'birthday'); ?>
    <?php $this->widget('application.extensions.timepicker.EJuiDateTimePicker', array(
        'model'=>$model,
        'language'=>'zh_cn',
        'attribute'=>'birthday',
        'options' => array(
            'dateFormat'=>'yy-mm-dd',
            'changeMonth'=>true,
            'changeYear'=>true,
            'timeFormat'=>'',
        ),
    ));
    ?>
 
		<?php echo $form->error($model,'birthday'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'nation'); ?>
		<?php echo $form->textField($model,'nation',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'nation'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'technical_position'); ?>
		<?php echo $form->textField($model,'technical_position',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'technical_position'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'degree'); ?>
		<?php echo $form->textField($model,'degree',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'degree'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'graduated'); ?>
		<?php echo $form->textField($model,'graduated',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'graduated'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'address'); ?>
		<?php echo $form->textField($model,'address',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'address'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'zip_code'); ?>
		<?php echo $form->textField($model,'zip_code'); ?>
		<?php echo $form->error($model,'zip_code'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tel'); ?>
		<?php echo $form->textField($model,'tel'); ?>
		<?php echo $form->error($model,'tel'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'brief'); ?>
		<?php echo $form->textArea($model,'brief',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'brief'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'research_experience'); ?>
		<?php echo $form->textArea($model,'research_experience',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'research_experience'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'research_achievement'); ?>
		<?php echo $form->textArea($model,'research_achievement',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'research_achievement'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'display_level'); ?>
		<?php echo $form->dropDownList($model,'display_level', $model->getLevelList()); ?>
		<?php echo $form->error($model,'display_level'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
